import request from '@/utils/request'
//登录
export function login(data) {
    return request({
        url: '/auth/login',
        method: 'post',
        data
    })
}
// 获取用户详细信息
export function getInfo(token) {
    return request({
        url: '/system/user/info',
        method: 'get'
    })
}
//退出登录
export function logout() {
    return request({
        url: '/auth/logout',
        method: 'post'
    })
}

// 获取验证码
export function getCodeImg() {
    return request({
        url: '/code',
        method: 'get',
        responseType: 'blob'
    })
}